﻿using MesGLApp.DAL.MesDB;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MesGLApp.DAL.MesDTO
{
    [Serializable]
    [NotMapped]
    public class TargetProdProcessDTO : TargetProdProcess
    {
        /// <summary>
        /// 实际周期时间
        /// </summary>
        [NotMapped]
        public TargetPPCycle TargetCycle { get; set; }

        /// <summary>
        /// 原始工单的计划周期时间
        /// </summary>
        [NotMapped]
        public SourcePPCycle SourceCycle { get; set; }

        /// <summary>
        /// 工单绑定的站点组别
        /// </summary>
        [NotMapped]
        public SiteGroupDTO SiteGroup { get; set; }

        /// <summary>
        /// 工单状态
        /// </summary>
        [NotMapped]
        public StatusInfo ProdStatus { get; set; }

        /// <summary>
        /// 紧急状态
        /// </summary>
        [NotMapped]
        public StatusInfo UrgentStatus { get; set; }

        /// <summary>
        /// 拆分状态
        /// </summary>
        [NotMapped]
        public StatusInfo SplitStatus { get; set; }

        /// <summary>
        /// 异常状态
        /// </summary>
        [NotMapped]
        public StatusInfo ErrStatus { get; set; }

        /// <summary>
        /// 扫码记录
        /// </summary>
        [NotMapped]
        public List<ProdProcScan> scanList { get; set; } = new List<ProdProcScan>();

        ///// <summary>
        ///// 该属性用于生成工单父站点的完成状态进度条
        ///// </summary>
        //[NotMapped]
        //public BreadcrumbModel BreadcrumbModel { get; set; }

        ///// <summary>
        ///// 该属性用于生成工单小站点的完成状态灯
        ///// </summary>
        //[NotMapped]
        //public List<LightModel> LightModelList { get; set; }
    }
}
